<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
        <title>Admin Ana Sayfa</title>
        <link href="../style.css" rel="stylesheet" type="text/css"></link>
        <div style="text-align: center;"><h:graphicImage url="../Images/header.png"></h:graphicImage></div>

    </h:head>
    <h:body>
        <h:form prependId="false">
            <div id="wrapper">
                <div id="logo">

                </div>
                <div id="header">
                    <!-- 		<div id="menu">
                    
                            </div>    -->
                </div>
                <div class="page">
                    <div id="page-bgtop">

                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Pages Menu">
                            <ui:include src="MenuAdmin.xhtml"/>
                        </p:panel>

                        <!-- end #sidebar -->

                        <div id="content">
                            <p:panel id ="panel" header="İhale Ekleme Paneli">
                                <p:dataTable id="dtable" var="ihale" value="#{adminBean.ihaleler}" paginator="true" rows="10"
                                             selection="#{adminBean.seciliIhale}" selectionMode="single"
                                             onRowSelectUpdate="display" >

                                    <f:facet name="header">
                                        İhale Listesi
                                    </f:facet>
                                    <p:column sortBy="#{ihale.ad}" filterBy="#{ihale.ad}">
                                        <f:facet name="header">
                                            <h:outputText value="Ad" />
                                        </f:facet>
                                        <h:outputText value="#{ihale.ad}" />
                                    </p:column>
                                    <p:column sortBy="#{ihale.baslmaTarihi}"  style="width:15px" filterBy="#{ihale.baslmaTarihi}">
                                        <f:facet name="header">
                                            <h:outputText value="Başlangıç" />
                                        </f:facet>
                                        <h:outputText value="#{ihale.baslmaTarihi}" />
                                    </p:column>

                                  

                                    <p:column sortBy="#{ihale.bitisTarihi}" style="width:15px" filterBy="#{ihale.bitisTarihi}">
                                        <f:facet name="header">
                                            <h:outputText value="Bitiş" />
                                        </f:facet>
                                        <h:outputText value="#{ihale.bitisTarihi}" />
                                    </p:column>
                                    <p:column sortBy="#{ihale.satinAlmaci.sirketAdi}" filterBy="#{ihale.satinAlmaci.sirketAdi}">
                                        <f:facet name="header">
                                            <h:outputText value="Satın Almacı" />
                                        </f:facet>
                                        <h:outputText value="#{ihale.satinAlmaci.sirketAdi}" />
                                    </p:column>

                               

                                  
                                </p:dataTable>

                                <p:commandButton update="panel" value="Sil" action="#{adminBean.silIhale()}" 
                                                         image="ui-icon ui-icon-extlink">  
                                           
                                        </p:commandButton> 
                                 <p:commandButton ajax="false" value="Detay" action="AdminIhaleDetay.xhtml" 
                                                         image="ui-icon ui-icon-extlink">  
                                           
                                        </p:commandButton> 
                                <p:messages/>
                            </p:panel> 

                        </div>
                        <!-- end #content -->

                        <div style="clear: both;">&nbsp;</div>
                    </div>

                    <!-- end #page -->

                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>İHALE YÖNETİM SİSTEMİ - 2011</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>

        </h:form>
    </h:body>
</html>